cmake_minimum_required(VERSION 3.11)
project(websocket_bench)
message("cmake module " $ENV{CMAKE_MODULE_PATH})
message("project dir "  ${PROJECT_SOURCE_DIR})


include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third/include/boost171)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../obj/inc)

link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../build)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../obj)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/third/lib)

link_libraries(ws2_32)
link_libraries(bcrypt)
link_libraries(Iphlpapi.lib ssleay32.lib libeay32.lib Bcrypt.lib ) 

add_definitions("-D_WEBSOCKETPP_CPP11_TYPE_TRAITS_ -D_WEBSOCKETPP_CPP11_RANDOM_DEVICE_ -DASIO_STANDALONE")

add_executable(websocket_bench websocket_bench.cpp websocket_client.cpp)

target_include_directories(websocket_bench SYSTEM  PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../../obj/inc/third/include)
